package cn.ywang.concurrent;

import cn.ywang.concurrent.model.Task;

import java.util.ArrayList;
import java.util.List;

/**
 * @author BeatificWang
 * @date 2019/7/21 16:01
 */
public class DemoTest {

	public static void main(String[] args) {
		TaskRunner taskRunner = new TaskRunner();
		List<Task> taskList = new ArrayList<>();
		for (int i = 0; i < 16; i++) {
			taskList.add(new Task());
		}

		taskRunner.concurrentTaskRunner(taskList);
		taskRunner.synchronizedTaskRunner(taskList);
	}
}
